package ebcs.database.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ebcs.database.bean.BsCapacity;
import ebcs.database.mybatis.dao.BsCapacityMapper;
import ebcs.database.service.BsCapacityServiceImp;
import jplat.tools.string.DateUtil;

@Service
public class BsCapacityServiceImpl implements BsCapacityServiceImp{

	@Autowired
	private BsCapacityMapper capacityDao ;
	
	@Override
	public List<BsCapacity> searchCapacityInfor(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityInfor(req);
	}

	@Override
	public int searchCapacityInforPageCount(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityInforPageCount(req);
	}

	@Override
	public List<BsCapacity> assignCapacity(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.assignCapacity(req);
	}

	@Override
	public BsCapacity selectBsCapacity(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.selectBsCapacity(req);
	}

	@Override
	public List<BsCapacity> assignCapacityHistory(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.assignCapacityHistory(req);
	}

	@Override
	public List<BsCapacity> searchCapacityForms(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityForms(req);
	}

	@Override
	public List<BsCapacity> searchCapacityFormsAllInfor(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityFormsAllInfor(req);
	}

	@Override
	public int searchCapacityFormsPageCount(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityFormsPageCount(req);
	}

	@Override
	public List<BsCapacity> searchCapacityFormsRank(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityFormsRank(req);
	}

	@Override
	public int searchCapacityFormsRankPageCount(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityFormsRankPageCount(req);
	}

	@Override
	public List<BsCapacity> searchCapacityFormsRankAll(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityFormsRankAll(req);
	}

	@Override
	public List<BsCapacity> searchCapacityWeekInfor(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityWeekInfor(req);
	}

	@Override
	public int searchCapacityWeekInforPageCount(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityWeekInforPageCount(req);
	}

	@Override
	public List<BsCapacity> searchCapacityWeekInforAll(BsCapacity req) {
		// TODO Auto-generated method stub
		return capacityDao.searchCapacityWeekInforAll(req);
	}

	@Override
	public void insertCapacity(BsCapacity req) {
		req.setCreateDate(DateUtil.getDate());
		req.setCreateTime(DateUtil.getTime());
		capacityDao.insertCapacity(req);
	}

}
